package org.example;

import com.example.EnableHeaderConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

//自动配置实现方案一：@Component + @ComponentScan
//@ComponentScan(basePackages = {"org.example","com.example"})

////自动配置方案二：@Import
////@Import(TokenParser.class)
//@Import(HeaderParser.class)
//@Import(MyImportSelector.class)  //ImportSelector实现类 - 批量导入组件
@EnableHeaderConfig
@ServletComponentScan//开启springboot的servlet组件
@SpringBootApplication //具备组件扫描功能，扫描的是启动类所在的包及子包
public class TliasWebManagementApplication {

	public static void main(String[] args) {
		SpringApplication.run(TliasWebManagementApplication.class, args);
	}

//	@Bean
//	public AliyunOSSOperator aliyunOSSOperator(AliyunOSSProperties ossProperties){
//		return new AliyunOSSOperator(ossProperties);
//	}

}
